<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_运算符</title>
</head>
<body>
<script>
    console.log(6 / 3);
    console.log(2 / 3);
    console.log(3 > '10');
    console.log('3' > 10);
    console.log('超'.charCodeAt());
    console.log('宇'.charCodeAt());
    console.log('超' > '宇');
    console.log('3' > '10');
    console.log('3'.charCodeAt());//51，默认取第一位数字的下标‘0’
    console.log('10'.charCodeAt(0));//1的编码是49
    console.log('--------------------------------------');
    let a = 1;
    let b = true;
    console.log(a == b);
    console.log(a === b);
    let c = 0;
    console.log(c == 0 ? 'yes' : 'no');
    console.log(c = 0 ? 'yes' : 'no');//0转为布尔类型是false

</script>
</body>
</html>